const {Service}=require("egg")

class AuthdvService extends Service{
    // 获取权限数据
    async index(id){
        const sql=`select * from auth_views,auth_identity_views where auth_views.views_id=auth_identity_views.views_id and type_id=?`
        return await this.app.mysql.query(sql,[id])
    }
}

module.exports=AuthdvService